package dfbz.work;

public class Test04 {
    public static void main(String[] args) {
        oushu();
        jishu();
    }
    public static void oushu(){
        int a1=10;
        int a2=11;
        String oushu1=(a1%2==0)?a1+"是偶数?true":a1+"是偶数?false";
        String oushu2=(a2%2==0)?a2+"是偶数?true":a2+"是偶数?false";
        System.out.println(oushu1);
        System.out.println(oushu2);
    }
    public static void jishu(){
        int b1=12;
        int b2=13;
        String jishu1=(b1%2==0)?"true":"false";
        String jishu2=(b2%2==0)?"true":"false";
        System.out.println(b1+"是奇数？"+jishu1);
        System.out.println(b1+"是奇数？"+jishu2);
    }
}
